import request from '@/utils/airequest';
import { AxiosPromise } from 'axios';
import { IaaAutomaticPlacementVO } from './types';

/**

/**
 * python ai 测试接口
 */
export const aiTest = (query?: any): AxiosPromise<any> => {
  return request({
    url: '/automatic_placement/inner/test',
    method: 'get',
    params: query
  });
};
/**
 * python ai 端原生IAA自动投放接口
 */
export const automaticPlacementIaa = (data: IaaAutomaticPlacementVO): AxiosPromise<any> => {
  return request({
    url: '/automatic_placement/inner/automatic_placement_iaa',
    method: 'post',
    data: data
  });
};

/**
 * python ai 端原生IAA 批量查询广告 分数
 */
export const getMaticPlacementScores = (data): AxiosPromise<any> => {
  return request({
    url: '/automatic_placement/inner/scores',
    method: 'post',
    data: data
  });
};
